<?php
/*
Plugin Name: Under Construction
*/

function underconstruction_init(){
	if(!is_admin() && strpos($_SERVER['REQUEST_URI'], 'wp-') === false){
		get_currentuserinfo();
		global $current_user;
		if(!$current_user->ID){
			print file_get_contents(ABSPATH . '/index-old.html');
			exit;
		}
	}
}
add_action('init', 'underconstruction_init');